<?php
if (count($list) > 0) {
    foreach ($list as $host) {
        $zone = $host->zone();
        ?>
        <a target="_blank" href="http://<?php echo $host->host; ?>.<?php echo $zone->name; ?>:8080">
            <?php echo $host->host; ?>.<?php echo $zone->name; ?>
        </a> -> <?php echo $host->ip; ?>
        <br/>
        <?php
    }
} else {
    ?>
    <p>Você não tem nenhum host cadastrado</p>
    <?php
}
?>
